package com.le.tester.webpage.masterCode.staticDemo;

import com.le.tester.utils.DateTimeUtilFor8;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述：child
 */
public class staticDemoChild extends staticDemoParent{
    public static List<String> parentList = new ArrayList<String>() {{
        System.out.println(DateTimeUtilFor8.time());
        System.out.println("子类静态的类变量被初始化了");
    }};

    static {
        System.out.println(DateTimeUtilFor8.time());
        System.out.println("子类静态代码块被初始化了");
    }

    public staticDemoChild() {
        System.out.println(DateTimeUtilFor8.time());
        System.out.println("子类构造器被初始化了");
    }

    public static void testStatic(){
        System.out.println(DateTimeUtilFor8.time());
        System.out.println("子类静态方法被初始化了");
    }

    public static void main(String[] args) {
        //System.out.println("main 开始执行");
        new staticDemoChild();
    }
}
